<ion-content style="height:calc(100vh - 60px)">
    <ion-header>
        <ion-toolbar>
            <ion-title>考试 - {{ examData.title }}</ion-title>
        </ion-toolbar>
    </ion-header>

    <ion-card *ngFor="let item of questionData; let i = index">
        <ion-card-header>
            <ion-card-title>{{ i + 1 }}、{{ item.title }}</ion-card-title>
            <ion-card-subtitle>{{ item.typeName }}</ion-card-subtitle>
        </ion-card-header>

        <!-- 单选题 -->
        <ion-card-content *ngIf="item.type === 0">
            <ion-radio-group>
                <ion-radio *ngFor="let cq of item.content; let j = index" (click)="addAnswer(item.objectId, j)" class="center">
                    {{ cq }}
                </ion-radio>
              </ion-radio-group>
        </ion-card-content>

    </ion-card>

    <ion-button (click)="submitExam()" class="full-button">提交试卷</ion-button>

</ion-content>